<?php

use think\facade\Route;

// 分销中心
Route::group('commission', function () {

    // 分销商信息
    Route::get('agent', 'api.commission.Agent/index');
    // 团队列表 ≥≥
    Route::get('agent/team', 'api.commission.Agent/team');
    // 申请分销商
    Route::post('agent/apply', 'api.commission.Agent/apply');
    // 分销商资料
    Route::get('agent/form', 'api.commission.Agent/form');
    // 分销排行 ≥≥
    Route::get('agent/rank', 'api.commission.Agent/rank');
    // 佣金转余额
    Route::post('agent/transfer', 'api.commission.Agent/transfer');
    // 分销动态
    Route::get('log', 'api.commission.Log/index');
    // 分销订单
    Route::get('order', 'api.commission.Order/index');
    // 佣金记录 ≥≥
    Route::get('reward', 'api.commission.Reward/list');
    // 推广商品 
    Route::get('goods', 'api.commission.Goods/index');
})->middleware('check_login', 'user');
